package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 分销管理对象 sys_distribution
 * 
 * @author ruoyi
 * @date 2021-06-06
 */
public class SysDistribution extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户分销编号 */
    private Long distid;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickname;

    /** 邀请码 */
    @Excel(name = "邀请码")
    private String askcode;

    /** 上级用户名 */
    @Excel(name = "上级用户名")
    private String superusername;

    /** 上级用户昵称 */
    @Excel(name = "上级用户昵称")
    private String supernickname;

    /** 上级邀请码 */
    @Excel(name = "上级邀请码")
    private String superaskcode;

    /** 用户积分 */
    @Excel(name = "用户积分")
    private Long usernameintegral;

    /** 邀请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "邀请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date askdate;

    public void setDistid(Long distid) 
    {
        this.distid = distid;
    }

    public Long getDistid() 
    {
        return distid;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }
    public void setAskcode(String askcode) 
    {
        this.askcode = askcode;
    }

    public String getAskcode() 
    {
        return askcode;
    }
    public void setSuperusername(String superusername) 
    {
        this.superusername = superusername;
    }

    public String getSuperusername() 
    {
        return superusername;
    }
    public void setSupernickname(String supernickname) 
    {
        this.supernickname = supernickname;
    }

    public String getSupernickname() 
    {
        return supernickname;
    }
    public void setSuperaskcode(String superaskcode) 
    {
        this.superaskcode = superaskcode;
    }

    public String getSuperaskcode() 
    {
        return superaskcode;
    }
    public void setUsernameintegral(Long usernameintegral) 
    {
        this.usernameintegral = usernameintegral;
    }

    public Long getUsernameintegral() 
    {
        return usernameintegral;
    }
    public void setAskdate(Date askdate) 
    {
        this.askdate = askdate;
    }

    public Date getAskdate() 
    {
        return askdate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("distid", getDistid())
            .append("username", getUsername())
            .append("nickname", getNickname())
            .append("askcode", getAskcode())
            .append("superusername", getSuperusername())
            .append("supernickname", getSupernickname())
            .append("superaskcode", getSuperaskcode())
            .append("usernameintegral", getUsernameintegral())
            .append("askdate", getAskdate())
            .toString();
    }
}
